#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
    char a = 0;
    a = getchar();
    a -= (a >= 97) ? 32 : 0;
    printf("%c", a);
    while (1)
    {
        while ((a = getchar()) != ' ' && a != '\n');
        if (a == '\n')
            break;

        a = getchar();
        a -= (a >= 97) ? 32 : 0;
        printf("%c", a);


    }

    return 0;
}